package com.ds.infrastructure.hyperspace.console.dao.dao;

import com.ds.infrastructure.hyperspace.console.dao.mapper.TbMethodLockMapper;
import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbMethodLock;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-10-16 15:22
 **/

@Repository
public class TbMethodLockDao {
    @Autowired
    TbMethodLockMapper tbMethodLockMapper;

    public TbMethodLock selectByPrimaryKey(Long id) {
        return tbMethodLockMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TbMethodLock record) {
        return tbMethodLockMapper.updateByPrimaryKeySelective(record);
    }

    public int insertSelective(TbMethodLock record) {
        return tbMethodLockMapper.insertSelective(record);
    }

    public List<TbMethodLock> selectListForPage(TbMethodLock where, TbCustomWhere mapWhere, TbPageWhere pageWhere) {
        return tbMethodLockMapper.selectListForPage(where, mapWhere, pageWhere);
    }

    public int selectListForPageCount(TbMethodLock where, TbCustomWhere mapWhere) {
        return tbMethodLockMapper.selectListForPageCount(where, mapWhere);
    }

    public int deleteByPrimaryKey(Long id) {
        return tbMethodLockMapper.deleteByPrimaryKey(id);
    }
}
